package canglang.monitor.cases.model;

import canglang.monitor.core.base.model.BaseModel;
import canglang.monitor.core.base.util.ApplicationContextUtil;
import canglang.monitor.core.codelookup.model.CodeModel;
import canglang.monitor.core.codelookup.service.CodeLookupMgr;

public class CaseLightModel extends BaseModel {

    private static final long serialVersionUID = -3208869365731711033L;

    private int recordId;

    private String caseType;

    private String pplInd;

    private String procInd;

    private int caseId;

    private int deptId;

    private String lightInd;

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public String getCaseType() {
        return caseType;
    }

    public void setCaseType(String caseType) {
        this.caseType = caseType;
    }

    public int getCaseId() {
        return caseId;
    }

    public void setCaseId(int caseId) {
        this.caseId = caseId;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getLightInd() {
        return lightInd;
    }

    public void setLightInd(String lightInd) {
        this.lightInd = lightInd;
    }

    public String getProcInd() {
        return procInd;
    }

    public void setProcInd(String procInd) {
        this.procInd = procInd;
    }

    public String getPplInd() {
        return pplInd;
    }

    public void setPplInd(String pplInd) {
        this.pplInd = pplInd;
    }

    public String getDeptIdDesc(){
        CodeLookupMgr codeLookupMgr =(CodeLookupMgr) ApplicationContextUtil.getBean("codeLookupManager");
        CodeModel m= codeLookupMgr.getCode("DEPT_LIST",String.valueOf(deptId));
        if(m!=null)return m.getCodeDesc();
        return "";
    }


}
